<?php foreach(HResponse::getAttribute('list') as $key => $item) { ?>
<div class="p2 nofirst<?php echo $key; ?>">
    <figure>
        <a data-url="<?php echo HResponse::url('goods/detail'); ?>" href="javascript:void(0)" data-id="<?php echo $item['id']; ?>" class="click_pop"><span id="imgqh<?php echo $item['id']; ?>"><img src="<?php echo HResponse::touri($item['image_path']); ?>"/></span></a>
        <div class="showcolorbox">
            <div class="color_tag">
                <label class="f_tag" data-id="<?php echo $item['id']; ?>" data-image="<?php echo HResponse::touri($item['image_path']); ?>"><a href="javascript:void(0);"><img src="<?php echo HResponse::uri(); ?>images/c_tag.jpg" width="26" height="26" /></a></label>
                <?php foreach ($item['colors'] as $val) { ?>
                <label data-id="<?php echo $item['id']; ?>" data-image="<?php echo HResponse::touri($val['image_path']); ?>"><input type="radio" name="color_qhbox" value="<?php echo $val['color_id']; ?>">
                    <?php if ($val['content']) { ?>
                        <i class="colorStyle" style="background:#<?php echo $val['content']; ?>"></i>
                    <?php } else { ?>
                        <img src="<?php echo HResponse::touri($val['cimage_path']); ?>" />
                    <?php } ?>
                </label>
                <?php } ?>
            </div>
            <label class="<?php if ($item['is_like']) { ?>share_tag2 <?php } else { ?>share_tag <?php } ?>likes"><a href="javascript:void(0)" data-id="<?php echo $item['id']; ?>"> </a></label>
        </div>
        <div class="ptitle"><?php echo $item['name']; ?></div>
        <div class="showsharpbox">
            <li class="onesharp"><?php echo $item['kuan']; ?></li>
            <li class="towsharp"><?php echo $item['zhai']; ?></li>
            <li class="shrsharp"><?php echo $item['height']; ?></li>
            <li class="foursharp"><?php echo $item['length']; ?></li>
        </div>
    </figure>
</div>
<?php } ?>
<div class="clear"></div>
<div class="page">
    <a href="javascript:void(0);" class="navigation previous" rel="prev"><</a>
    <?php for($i = 1; $i <= HResponse::getAttribute('totalPages'); $i++) { ?>
    <a href="javascript:void(0);" class="pageNumber <?php if($i == I('page') || empty(I('page'))) { ?>current<?php } ?> "><?php echo $i; ?></a>
    <?php } ?>
    <a href="javascript:void(0)" class="navigation next disabled" rel="next" data-page="<?php echo HResponse::getAttribute('totalPages'); ?>">></a>
</div>
<div class="clear"></div>
<script>
    var page = 1;
</script>